﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StateTheater;

namespace StateTheater.Models
{
    public class PersonShort
    {
        public int PersonID { get; set; }
        public String Name { get; set; }
        public bool HasBio { get; set; }
        public bool HasPhoto { get; set; }

        public PersonShort(People person)
        {
            PersonID = person.PersonID;
            Name = person.FirstName.Trim() + " " + person.LastName.Trim();
            HasBio = !String.IsNullOrEmpty(person.Bio);
            HasPhoto = !String.IsNullOrEmpty(person.Photo);
        }
    }
}
